<template>
	<view class="main_bg">
		<view class="setting" v-if="showSetting" @click="navigateTo('/pages/login/logout')">
			<u--image :showLoading="true" src="/static/images/setting.png" width="36rpx" height="36rpx"  ></u--image>
		</view>
		<slot></slot>
	</view>
</template>

<script>
	export default {
		name:"view",
		props:{
			showSetting:{
				type:Boolean,
				default:true
			}
		},
		data() {
			return {
				
			};
		},
		methods:{
			navigateTo(url) {
				uni.navigateTo({
					url:url
				})
			}
		}
	}
</script>

<style scoped lang="scss">
.main_bg {
	min-height: 100vh;
	background-image: url('/static/images/main_bg.png');
	background-size: cover;
}
.setting {
	position: absolute;
	right: 70rpx;
	top: 70rpx;
}
</style>